package com.cc.demo.component.retry.remote;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/remote")
public class RemoteRetryController {
    private final RemoteRetryService remoteRetryService;
    @RequestMapping("/retry")
    public void localRetry(String params) {
        remoteRetryService.remoteRetry(params);
    }
}
